package com.sugon.optional;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Optional;

/**
 * @author LUOYUAN
 * @create 2018-12-08-13:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Man {

    String name;

   // Optional<Woman> wife = Optional.ofNullable(new Woman("xxx"));
   Optional<Woman> wife = Optional.empty();

}
